#!/usr/bin/env bash
#$ ll /usr/local/opt/ |grep openjdk
#lrwxr-xr-x  1 han  admin    20B  9 22 19:10 java -> ../Cellar/openjdk/17
#lrwxr-xr-x  1 han  admin    20B  9 22 19:10 openjdk -> ../Cellar/openjdk/17

#$ vi ~/.zshrc
#export JAVA_8_HOME=/usr/local/opt/openjdk@8/libexec/openjdk.jdk/Contents/Home
#export JAVA_17_HOME=/usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home
##export JAVA_17_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home
#export JAVA_HOME=$JAVA_8_HOME

export JAVA_HOME=$JAVA_17_HOME
java -version
mvn clean package -DskipTests -U